import request from '@/utils/request'

// 获取权限列表
export function getPermissionList() {
    return request.get('/v1/permissions/list')
}

// 创建权限
export function createPermission(data) {
    return request.post('/v1/permissions/create', data)
}

// 更新权限
export function updatePermission(data) {
    return request.post('/v1/permissions/update', data)
}

// 删除权限
export function deletePermission(id) {
    return request.post('/v1/permissions/delete', { id })
}
